//导入请求工具类
import request from '@/utils/request.js'
//添加购物车项
export const cartAddService=(params)=>{
    return request.put(`/shoppingcart/add?g_id=${params.g_id}&g_count=${params.g_count}`)
}
//采购商id获取购物车项列表
export const cartListService=()=>{
    return request.get('/shoppingcart')
}
//更新购物车项
export const cartUpdateService = (cartData)=>{
    return  request.put(`/shoppingcart?g_id=${cartData.g_id}&g_count=${cartData.g_count}`)
}
//删除购物车项
export const cartDeleteService = (g_id)=>{
    return request.delete('/shoppingcart?g_id='+g_id)
}